home *** CD-ROM | disk | FTP | other *** search
/ PC Play 129 / pc play 129.iso / Demo / man2 / man2.exe / data / scripts / BASE_EFFECTS_SCRIPTS / base_shot.lua < prev   
Encoding:
Text File  |  2007-01-25  |  6.2 KB  |  250 lines

  1. desc = getEffectDescriptionP(ENET_EFFECT_PS_BASESHOT)
  2.  
  3. desc.ClassID = ENCLASS_SIMPLEPARTICLESYSTEM
  4. desc.EffectClassType = ENECT_PARTICLESYSTEM
  5.  
  6. desc.ScriptSet = ENSCRIPTSET_UNKNOWN
  7. desc.RelativePosition = ENLOCALPOS_NOTSPECIFIED
  8. local vzbzd1 = D3DXVECTOR3:new(0,0,0)
  9. desc.LocalPosition = vzbzd1
  10. vzbzd1:delete()
  11. desc.isAnimateTexture = false
  12. desc.RenderType = ENRENDERTYPE_GEOMETRY
  13.  
  14. Emitter = desc.PS.PSDescription
  15. Emitter.ParticleTypesNumber = 2
  16. local vzbzd2 = D3DXVECTOR3:new(0,0,0)
  17. Emitter.EmitterPosition = vzbzd2
  18. vzbzd2:delete()
  19. local vzbzd3 = D3DXVECTOR3:new(0,0,0)
  20. Emitter.EmitterDirection = vzbzd3
  21. vzbzd3:delete()
  22. Emitter.EmitterLifeTime = 1
  23.  
  24. PT = Emitter.ParticleTypesParams[1]
  25. PT.IsEmitterLocked = false
  26. PT.DrawOrder = 2
  27. PT.Material = ENMAT_PARTICLE_LIGHT
  28.  
  29.  
  30. PT.TextureName = "environment_effect_explosion_sparkles1.dds"
  31.  
  32. PT.ParticlesPerSecond = 20.0;
  33. PT.InitialNumberOfParticles = 10.0;
  34. PT.BaseLifeTime = 0.6;
  35. PT.BaseLifeTimeVariance = 0.3;
  36. PT.BaseSpeed = 50.0;
  37. PT.BaseSpeedVariance = 0.0;
  38. PT.BaseAngle = 3.0;
  39. PT.BaseAngleVariance = 0.4;
  40. PT.BaseAngleSpeed = 0.0;
  41. PT.BaseAngleSpeedVariance = 0.0;
  42. PT.BaseAngleSpeedDirection = 0;
  43. local vzbzd4 = D3DXVECTOR3:new(0.0,0.0,1.0)
  44. PT.BaseDirection = vzbzd4
  45. vzbzd4:delete()
  46. local vzbzd5 = D3DXVECTOR3:new(0.0,0.0,0.0)
  47. PT.BaseDirectionVariance = vzbzd5
  48. vzbzd5:delete()
  49. local vzbzd6 = D3DXVECTOR3:new(0,0,0)
  50. PT.BasePosition = vzbzd6
  51. vzbzd6:delete()
  52. local vzbzd7 = D3DXVECTOR3:new(0,0,6)
  53. PT.BasePositionVariance = vzbzd7
  54. vzbzd7:delete()
  55. PT.BaseSize = 4.0;
  56. PT.BaseSizeVariance = 0.4;
  57.  
  58. -- color over time
  59. PT.ColorOverTimeR[1].TimePercent = 0.0;
  60. PT.ColorOverTimeR[1].Value = 0.5;
  61. PT.ColorOverTimeG[1].TimePercent = 0.0;
  62. PT.ColorOverTimeG[1].Value = 0.5;
  63. PT.ColorOverTimeB[1].TimePercent = 0.0;
  64. PT.ColorOverTimeB[1].Value = 0.5;
  65.  
  66. PT.ColorOverTimeR[2].TimePercent = 1.0;
  67. PT.ColorOverTimeR[2].Value = 0.5;
  68. PT.ColorOverTimeG[2].TimePercent = 1.0;
  69. PT.ColorOverTimeG[2].Value = 0.5;
  70. PT.ColorOverTimeB[2].TimePercent = 1.0;
  71. PT.ColorOverTimeB[2].Value = 0.5;
  72.  
  73. -- transparency over time
  74. PT.TransparencyOverTime[1].TimePercent = 0.0;
  75. PT.TransparencyOverTime[1].Value = 0.0;
  76.  
  77. PT.TransparencyOverTime[2].TimePercent = 0.03;
  78. PT.TransparencyOverTime[2].Value = 0.1;
  79.  
  80. PT.TransparencyOverTime[3].TimePercent = 1.0;
  81. PT.TransparencyOverTime[3].Value = 0.0;
  82.  
  83.  
  84. -- size over time
  85. PT.SizeOverTime[1].TimePercent = 0.0;
  86. PT.SizeOverTime[1].Value = 3.0;
  87.  
  88. PT.SizeOverTime[2].TimePercent = 0.2;
  89. PT.SizeOverTime[2].Value = 12.0;
  90.  
  91. PT.SizeOverTime[3].TimePercent = 1.0;
  92. PT.SizeOverTime[3].Value = 3.0;
  93.  
  94.  
  95. -- Speed over time
  96. PT.SpeedOverTime[1].TimePercent = 0.0;
  97. PT.SpeedOverTime[1].Value = 1.0;
  98.  
  99. PT.SpeedOverTime[2].TimePercent = 1.0;
  100. PT.SpeedOverTime[2].Value = 0.0;
  101.  
  102. -- Tangent Speed over time
  103. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  104. PT.TangentSpeedOverTime[1].Value = 0.0;
  105.  
  106. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  107. PT.TangentSpeedOverTime[2].Value = 0.0;
  108.  
  109.  
  110. -- GravityAcceleration over time
  111. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  112. PT.GravityAccelerationOverTime[1].Value = 0.0;
  113.  
  114. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  115. PT.GravityAccelerationOverTime[2].Value = 0.0;
  116.  
  117. -- AngleSpeed over time
  118. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  119. PT.AngleSpeedOverTime[1].Value = 1.0;
  120.  
  121. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  122. PT.AngleSpeedOverTime[2].Value = 0.0;
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141. PT = Emitter.ParticleTypesParams[2]
  142. PT.IsEmitterLocked = false
  143. PT.DrawOrder = 1
  144. PT.Material = ENMAT_SIMPLEPARTICLE
  145.  
  146.  
  147. PT.TextureName = "environment_effect_explosion_smoke6.dds"
  148.  
  149. PT.ParticlesPerSecond = 20.0;
  150. PT.InitialNumberOfParticles = 0.0;
  151. PT.BaseLifeTime = 1.5;
  152. PT.BaseLifeTimeVariance = 0.3;
  153. PT.BaseSpeed = 2.0;
  154. PT.BaseSpeedVariance = 0.0;
  155. PT.BaseAngle = 3.0;
  156. PT.BaseAngleVariance = 5.0;
  157. PT.BaseAngleSpeed = 0.3;
  158. PT.BaseAngleSpeedVariance = 0.3;
  159. PT.BaseAngleSpeedDirection = 0;
  160. local vzbzd8 = D3DXVECTOR3:new(0.0,0.0,0.0)
  161. PT.BaseDirection = vzbzd8
  162. vzbzd8:delete()
  163. local vzbzd9 = D3DXVECTOR3:new(0.0,0.0,0.0)
  164. PT.BaseDirectionVariance = vzbzd9
  165. vzbzd9:delete()
  166. local vzbzd10 = D3DXVECTOR3:new(0,0,5)
  167. PT.BasePosition = vzbzd10
  168. vzbzd10:delete()
  169. local vzbzd11 = D3DXVECTOR3:new(2,2,15)
  170. PT.BasePositionVariance = vzbzd11
  171. vzbzd11:delete()
  172. PT.BaseSize = 5.0;
  173. PT.BaseSizeVariance = 0.8;
  174.  
  175. -- color over time
  176. PT.ColorOverTimeR[1].TimePercent = 0.0;
  177. PT.ColorOverTimeR[1].Value = 0.5;
  178. PT.ColorOverTimeG[1].TimePercent = 0.0;
  179. PT.ColorOverTimeG[1].Value = 0.5;
  180. PT.ColorOverTimeB[1].TimePercent = 0.0;
  181. PT.ColorOverTimeB[1].Value = 0.5;
  182.  
  183. PT.ColorOverTimeR[2].TimePercent = 1.0;
  184. PT.ColorOverTimeR[2].Value = 0.5;
  185. PT.ColorOverTimeG[2].TimePercent = 1.0;
  186. PT.ColorOverTimeG[2].Value = 0.5;
  187. PT.ColorOverTimeB[2].TimePercent = 1.0;
  188. PT.ColorOverTimeB[2].Value = 0.5;
  189.  
  190. -- transparency over time
  191. PT.TransparencyOverTime[1].TimePercent = 0.0;
  192. PT.TransparencyOverTime[1].Value = 0.0;
  193.  
  194. PT.TransparencyOverTime[2].TimePercent = 0.2;
  195. PT.TransparencyOverTime[2].Value = 0.5;
  196.  
  197. PT.TransparencyOverTime[3].TimePercent = 1.0;
  198. PT.TransparencyOverTime[3].Value = 0.0;
  199.  
  200.  
  201. -- size over time
  202. PT.SizeOverTime[1].TimePercent = 0.0;
  203. PT.SizeOverTime[1].Value = 2.0;
  204.  
  205. PT.SizeOverTime[2].TimePercent = 0.1;
  206. PT.SizeOverTime[2].Value = 7.0;
  207.  
  208. PT.SizeOverTime[3].TimePercent = 1.0;
  209. PT.SizeOverTime[3].Value = 10.0;
  210.  
  211.  
  212. -- Speed over time
  213. PT.SpeedOverTime[1].TimePercent = 0.0;
  214. PT.SpeedOverTime[1].Value = 4.0;
  215.  
  216. PT.SpeedOverTime[2].TimePercent = 1.0;
  217. PT.SpeedOverTime[2].Value = 0.0;
  218.  
  219. -- Tangent Speed over time
  220. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  221. PT.TangentSpeedOverTime[1].Value = 0.0;
  222.  
  223. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  224. PT.TangentSpeedOverTime[2].Value = 0.0;
  225.  
  226.  
  227. -- GravityAcceleration over time
  228. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  229. PT.GravityAccelerationOverTime[1].Value = 0.0;
  230.  
  231. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  232. PT.GravityAccelerationOverTime[2].Value = 0.0;
  233.  
  234. -- AngleSpeed over time
  235. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  236. PT.AngleSpeedOverTime[1].Value = 0.0;
  237.  
  238. PT.AngleSpeedOverTime[2].TimePercent = 0.6;
  239. PT.AngleSpeedOverTime[2].Value = 1.0;
  240.  
  241. PT.AngleSpeedOverTime[3].TimePercent = 1.0;
  242. PT.AngleSpeedOverTime[3].Value = 0.0;
  243.  
  244.  
  245.  
  246.  
  247. --
  248. -- end particle system description
  249. --
  250.